/**
 * PlatformErrorCode.java
 * 
 * Copyright@2015 OVT Inc. All rights reserved. 
 * 
 * May 5, 2015
 */
package com.ovt.doorbell.payment.service.exception;

/**
 * PlatformErrorCode
 * 
 * @Author zhi.liu
 * @Version 1.0
 * @See 
 * @Since [OVT Cloud Platform]/[API] 1.0
 */
public class ServiceErrorCode
{

    public static final String NOT_LOGIN = "101";
    public static final String NO_ACCESS = "102";
    public static final String INVALID_ACCESS = "103";
    
    // user input(200)
    public static final String INVALID_DATA_FORMAT = "201";
    public static final String DUPLICATE_EMAIL_REGISTER = "202";
    public static final String WRONG_PASSWORD = "203";
    public static final String USER_NOT_EXIST = "204";
    public static final String DUPLICATE_NICK_NAME = "205";
    public static final String DUPLICATE_PHONE = "206";
    public static final String INVALID_SERVICE_TEMPLATE = "207";
    
    // user behavior(300)
    public static final String INACTIVE_USER_LOGIN = "301";
    public static final String TOO_FREQUENT_PASSWORD_FIND = "302";
    public static final String SERVICE_INSTANCE_NUM_EXCEED = "303";
    public static final String SERVICE_ACCESS_KEY_NUM_EXCEED = "304";
    
    // db(400)
    public static final String DB = "400";
    
    // cache(500)
    public static final String CACHE = "500";
    
    // service access(600)
    public static final String SERVICE_INSTANCE_UNAVAILABLE = "601";
    public static final String SERVICE_INSTANCE_INACTIVE = "602";
    public static final String ACCESS_DENIED = "603";
    public static final String NO_SUCH_METHOD = "604";
    public static final String INSUFFICIENT_PARAMETER = "605";
    public static final String ILLEGAL_HTTP_ARGUMENTS = "606";
    public static final String SERVICE_ACCESS_FAIL_IN_PLATFORM_SIDE = "607";
    public static final String SERVICE_ACCESS_FAIL_IN_SERVICE_SIDE = "608";
    
    public static final String JOB = "700";
    
    // other
    public static final String OTHER_ENCODEING = "801";
    
    // SaveProfile
    public static final String PROFILE_PERSISTENT_FAIL = "ProfilePersistFail";
    
    
    // CancelProfile
    public static final String CANNOT_CANCEL = "CannotCancel";
    
    
    public static final String SYSTEM_UNEXPECTED = "999";
}
